﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ZiyongList.aspx.cs" Inherits="Admin.House.ZiyongList" %>

<%@ Register Src="~/UserControls/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>自用房产管理</title>
    <link href="/admin/Css/rightbar.css?FileVersion=<%=FileVersion %>" rel="stylesheet"
        type="text/css" />
    <script src="/admin/Scripts/Calendar2008.js?FileVersion=<%=FileVersion %>" type="text/javascript"></script>
    <script src="/admin/Scripts/jquery-1.4.1.min.js?FileVersion=<%=FileVersion %>" type="text/javascript"></script>
    <script src="/admin/Scripts/Check.js?FileVersion=<%=FileVersion %>" type="text/javascript"></script>
</head>
<body id="wallet">
    <div class="warp">
        <div class="topnav" style="display: ">
            <ul>
                <li><a href="javascript:void(0);" style="cursor: default;" class="on_nav"><span>自用房产列表</span></a></li>
                <%if (HasPower("ZiyongInput.aspx"))
                  { %>
                <li><a href="ZiyongInput.aspx"><span>自用房产登记</span></a></li><%} %>
            </ul>
        </div>
        <div class="tab mt15">
            <ul>
                <li class="in_on"><strong>自用房产列表</strong></li>
            </ul>
        </div>
        <div class="cont" style="padding: 0; width: 678px;">
            <form id="searchForm" name="searchForm" action="ZiyongList.aspx">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="stb01" style="display: ">
                <input type="hidden" name="action" id="action" value="query" />
                <%--<tr>
                    <td style="padding-top: 5px; padding-left: 25px;" width="220" height="34" align="left"
                        valign="middle" bgcolor="#F3FBFE">
                        所属部门：<select name="selDepart" id="selDepart" style="width: 115px;">
                            <option value="">请选择所属部门</option>
                            <%=OutputSelectOptions(dtDepartmet, "name", "id")%>
                        </select>
                    </td>
                    <td style="padding-top: 5px;" width="220" align="left" valign="middle" bgcolor="#F3FBFE">
                        所属地段：<select id="selDiduan" name="selDiduan" style="width: 115px;">
                            <option value="">请选择所在地段</option>
                            <%=OutputSelectOptions(dtDiduan, "name", "id")%>
                        </select>
                    </td>
                    <td style="padding-top: 5px;" width="220" align="left" valign="middle" bgcolor="#F3FBFE">
                        房产类型：<select id="selHouseType" name="selHouseType" style="width: 115px;">
                            <option value="">请选择房产类型</option>
                            <option value="闲置">闲置</option>
                            <option value="自用">自用</option>
                            <option value="出租">出租</option>
                            <option value="拆除">拆除</option>
                        </select>
                    </td>
                </tr>--%>
                <tr>
                    <td style="padding-top: 0; padding-left: 20px;" height="34" align="left" valign="middle"
                        bgcolor="#F3FBFE">
                        房主姓名：<input type="text" name="txtName" id="txtName" value="<%=name %>" style="width: 70px;" />
                    </td>
                    <td style="padding-top: 0;" align="left" valign="middle" bgcolor="#F3FBFE">
                        房产证编号：<input type="text" name="txtCertificateID" id="txtCertificateID" value="<%=certificateID %>"
                            style="width: 100px;" />
                    </td>
                    <td style="padding-top: 0;" align="left" valign="middle" bgcolor="#F3FBFE">
                        自用日期：<input type="text" id="txtStartDate" name="txtStartDate" class="input200_out"
                            style="width: 65px;" maxlength="50" date="自用开始日期格式错" value="<%=startDate %>" />
                        -
                        <input type="text" id="txtEndDate" name="txtEndDate" class="input200_out" style="width: 65px;"
                            maxlength="50" date="自用结束日期格式错" value="<%=endDate %>" />
                    </td>
                    <td style="padding-top: 0; padding-right: 20px;" valign="middle" align="right" bgcolor="#F3FBFE">
                        <div class="pl10">
                            <input name="imageField" id="Button1" type="submit" value="搜 索" /></div>
                    </td>
                </tr>
            </table>
            </form>
            <table width="676" border="0" cellspacing="0" cellpadding="0" class="maintb" style="border-top: 0;"
                id="tbDataList">
                <asp:Repeater ID="rptDataList" runat="server">
                    <HeaderTemplate>
                        <tr>
                            <th width="90" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                房主姓名
                            </th>
                            <th width="160" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                房产证编号
                            </th>
                            <th width="90" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                开始日期
                            </th>
                            <th width="90" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                结束日期
                            </th>
                            <%if (isHasOptDataPower)
                              { %>
                            <th width="50" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                修改
                            </th>
                            <%if (UserLogin.UserEType != BaseData.UserType.ShuiShouManager)
                              { %>
                            <th width="50" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                删除
                            </th>
                            <%} %>
                            <%} %>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                                <%#Eval("Name")%>
                            </td>
                            <td align="center">
                                <%#Eval("CertificateID")%>
                            </td>
                            <td align="center">
                                <%#FormatData<DateTime>(Eval("StartDate"),"yyyy-MM-dd")%>
                            </td>
                            <td align="center">
                                <%#FormatData<DateTime>(Eval("EndDate"), "yyyy-MM-dd")%>
                            </td>
                            <%if (isHasOptDataPower)
                              { %>
                            <td align="center">
                                <a href='ZiyongModify.aspx?id=<%#Eval("id")%>'>
                                    <img src="/admin/Images/bluestyle/edit.gif" alt="修改" width="15" height="15" border="0" /></a>
                            </td>
                            <%if (UserLogin.UserEType != BaseData.UserType.ShuiShouManager)
                              { %>
                            <td align="center">
                                <a href='?action=stop&ID=<%#Eval("ID") %>&pageurl=<%=Server.UrlEncode(pageUrl) %>'
                                    onclick="return window.confirm('确认删除该自用房产吗？');">
                                    <img src="/Admin/Images/bluestyle/icodelb.gif" alt="删除" width="11" height="13" border="0" /></a>
                            </td>
                            <%} %>
                            <%} %>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
        <div style="text-align: right;">
            <form runat="server" id="pageForm24">
            <uc1:PageControl ID="pageCountrol" runat="server" Visible="false" />
            </form>
        </div>
    </div>
    <script type="text/javascript">
        var c = new Calendar("c");
        c.offsetTop = 30;
        document.write(c);

        $(function () {
            //为日期输入框增加日历控件
            $(":input[date]").bind("focus", function (event) {
                c.showMoreDay = false;
                c.show(this); this.
                className = 'input60_on';
                this.onmouseout = ''
            });
        });
    </script>
    <script type="text/javascript">
        //隔行变色
        jQuery(function ($) {
            $("#tbDataList tr:even").css("background-color", "#F9F9F9");
            $(":input[name='selHouseType']").val('<%=houseType %>');
            $(":input[name='selDepart']").val('<%=departmentID %>');
            $(":input[name='selDiduan']").val('<%=diduanID %>');
        });

    </script>
</body>
</html>
